/*
 * @Author: your name
 * @Date: 2021-12-22 10:00:44
 * @LastEditTime: 2021-12-24 12:08:40
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \shop\src\api\user\base.js
 */
//引入封装的公共的请求接口文件
import {GET, POST, UPLOAD} from '@/services/request.js'

export default {
    login(data = {}){
        return POST({
            url: '/user/base/login',
            params: data
        })
    },
    register(data = {}){
        return POST({
            url: '/user/base/register',
            params: data
        })
    },
    check(data={}){
        return POST({
            url: '/user/base/check',
            params: data
        })
    },
    profile(data={}){
        return UPLOAD({
            url: '/user/base/profile',
            params: data
        })
    },
    record(data={}){
        return POST({
            url: '/user/base/record',
            params: data
        })
    },
    baserecharge(data={}){
        return POST({
            url: '/user/base/recharge',
            params: data
        })
    },
    // 充值记录
    rechargerecord(data={}){
        return POST({
            url: '/user/base/rechargerecord',
            params: data
        })
    },
    // 邮箱认证
    email(data={}){
        return POST({
            url: '/user/base/email',
            params: data
        })
    },
     // 校验验证码
    emailcode(data={}){
        return POST({
            url: '/user/base/emailcode',
            params: data
        })
    }
}